﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternDemoCApp.Creational.AbstractFactoryPattern.European
{
    /// <summary>
    /// 欧式风格房屋工厂：ConcreteFactory
    /// </summary>
    public class EuropeanFactory : AbstractFactory
    {
        public override Door CreateDoor()
        {
            Console.WriteLine("创建欧式门");
            return new EuropeanDoor();
        }

        public override Floor CreateFloor()
        {
            Console.WriteLine("创建欧式地板");
            return new EuropeanFloor();
        }

        public override Roof CreateRoof()
        {
            Console.WriteLine("创建欧式房顶");
            return new EuropeanRoof();
        }

        public override Window CreateWindow()
        {
            Console.WriteLine("创建欧式窗户");
            return new EuropeanWindow();
        }
    }
}
